<?php
//require_once(realpath(dirname(__FILE__)) . '/../../Aplicación/models/interfaces/IUser.php');

/**
 * @access public
 * @author Edgar Morán
 * @package Aplicación.models
 */
class ActorUser implements IUser { 
	/**
	 * @AttributeType int
	 */
	private $_id;
	/**
	 * @AttributeType string
	 */
	private $_userName;
	/**
	 * @AttributeType string
	 */
	private $_name;
	/**
	 * @AttributeType string
	 */
	private $_lastName;
	/**
	 * @AttributeType string
	 */
	private $_password;
	/**
	 * @AttributeType string
	 */
	private $_email;
	/**
	 * @AttributeType string
	 */
	private $_userType;
	/**
	 * @AttributeType string
	 */
	private $_access;

	public function __construct($params) {
			//$this->_id=$params['id'];
			$this->_userName = $params['userName'];
			$this->_name= $params['name'];
			$this->_lastName = $params['lastName'];
			$this->_email = $params['email'];
			$this->_userType = $params['userType'];
			$this->_access = $params['access'];
			$this->_password = $params['password'];
	}
	
	/**
	 * @access public
	 * @return int
	 * @ReturnType int
	 */
	public function getId() {
		return $this->_id;
	}

	/**
	 * @access public
	 * @param int aId
	 * @return void
	 * @ParamType aId int
	 * @ReturnType void
	 */
	public function setId($aId) {
		$this->_id = $aId;
	}

	/**
	 * @access public
	 * @return string
	 * @ReturnType string
	 */
	public function getUserName() {
		return $this->_userName;
	}

	/**
	 * @access public
	 * @param string aUserName
	 * @return void
	 * @ParamType aUserName string
	 * @ReturnType void
	 */
	public function setUserName($aUserName) {
		$this->_userName = $aUserName;
	}

	/**
	 * @access public
	 * @return string
	 * @ReturnType string
	 */
	public function getName() {
		return $this->_name;
	}

	/**
	 * @access public
	 * @param string aName
	 * @return void
	 * @ParamType aName string
	 * @ReturnType void
	 */
	public function setName($aName) {
		$this->_name = $aName;
	}

	/**
	 * @access public
	 * @return string
	 * @ReturnType string
	 */
	public function getLastName() {
		return $this->_lastName;
	}

	/**
	 * @access public
	 * @param string aLastName
	 * @return void
	 * @ParamType aLastName string
	 * @ReturnType void
	 */
	public function setLastName($aLastName) {
		$this->_lastName = $aLastName;
	}

	/**
	 * @access public
	 * @return string
	 * @ReturnType string
	 */
	public function getPassword() {
		return $this->_password;
	}

	/**
	 * @access public
	 * @param string aPassword
	 * @return void
	 * @ParamType aPassword string
	 * @ReturnType void
	 */
	public function setPassword($aPassword) {
		$this->_password = $aPassword;
	}

	/**
	 * @access public
	 * @return string
	 * @ReturnType string
	 */
	public function getUserType() {
		return $this->_userType;
	}

	/**
	 * @access public
	 * @param string aUserType
	 * @return void
	 * @ParamType aUserType string
	 * @ReturnType void
	 */
	public function setUserType($aUserType) {
		$this->_userType = $aUserType;
	}

	/**
	 * @access public
	 * @return string
	 * @ReturnType string
	 */
	public function getEmail() {
		return $this->_email;
	}

	/**
	 * @access public
	 * @param string aEmail
	 * @return void
	 * @ParamType aEmail string
	 * @ReturnType void
	 */
	public function setEmail($aEmail) {
		$this->_email = $aEmail;
	}

	/**
	 * @access public
	 * @return string
	 * @ReturnType string
	 */
	public function getAccess() {
		return $this->_access;
	}

	/**
	 * @access public
	 * @param string aAccess
	 * @return void
	 * @ParamType aAccess string
	 * @ReturnType void
	 */
	public function setAccess($aAccess) {
		$this->_access = $aAccess;
	}
}
?>